#ifndef __BSP_BIZHANG_H
#define __BSP_BIZHANG_H



#include <STC89C5xRC.H>
#include "delay.h"

#include "433m.h"


sbit sg90_con = P1^1;

sbit Trig = P2^3;

sbit Echo = P2^2;


extern int jd;

extern int cnt_duoji;


#define MIDDLE 1
#define LEFT  2
#define RIGHT 3


 extern   char dir;
 extern		double disMiddle;
     
  extern  double disLeft;

   extern  double disRight;
void Sg90MiddleSee();

void Sg90LeftSee();

void Sg90RightSee();


void Time1_Init(void);

double get_distance();

void BiZhang_Proc();




#endif
